import request from '@/utils/request'

export function listWithdraw(query) {
  return request({
    url: '/system/withdraw/list',
    method: 'get',
    params: query
  })
}

export function getWithdraw(id) {
  return request({
    url: '/system/withdraw/' + id,
    method: 'get'
  })
}

export function checkWithdraw(data) {
  return request({
    url: '/system/withdraw/checkout',
    method: 'put',
    data
  })
}
